package com.augurit.common.calendar.service;

import java.util.List;

import com.augurit.common.base.service.ICrudService;
import com.augurit.common.calendar.web.form.SysCalSharedForm;
import com.augurit.common.calendar.web.form.SysCalendarForm;

public interface ISysCalSharedService extends ICrudService<SysCalSharedForm, Long> {
	/**
	 * 获取某一事件的所有编辑者
	 * @param eventId
	 */
	public List<SysCalSharedForm> getEditors(Long eventId);
	
	/**
	 * 获取某一事件的所有读者
	 * @param eventId
	 */
	public List<SysCalSharedForm> getReaders(Long eventId);
	
	public List<SysCalSharedForm> getSharedUsers(Long eventId);
	
	public void save(Long eventId, Long[] shareUserIds, String[] shareTypes);
	
	public void save(Long eventId, Long shareUserId, String shareType);
	
}